import { createRouter, createWebHashHistory } from 'vue-router'

export default createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            name: 'Home',
            path: '/',
            meta: { title: '首页' },
            component: () => import('/@/views/Home.vue')
        },
        {
            name: 'HelloWorld',
            path: '/helloworld',
            meta: { title: '帮助' },
            component: () => import('/@/views/HelloWorld.vue')
        },
        {
            name: 'TypeManager',
            path: '/typemanager',
            meta: { title: '类型管理' },
            component: () => import('/@/views/TypeManager.vue')
        },
        {
            name: 'DataViews',
            path: '/dataviews',
            meta: { title: '数据图表' },
            component: () => import('/@/views/DataViews.vue')
        },
        {
            name: 'DataIO',
            path: '/dataio',
            meta: { title: '数据备份' },
            component: () => import('/@/views/DataIO.vue')
        }
    ]
})